import request from '@/utils/request'

export const getRoleList = () => {
  return request({
    url: '/service-user/role/getrole',
    method: 'get',
  })
}
export const updaterole = data => {
  return request({
    url: '/service-user/role/updaterole',
    method: 'post',
    params: data,
  })
}
export const saverole = data => {
  return request({
    url: '/service-user/role/saverole',
    method: 'post',
    params: data,
  })
}
export const removerole = id => {
  return request({
    url: '/service-user/role/removeRoleId',
    method: 'post',
    params: {
      id: id,
    },
  })
}
